package com.medibooking.gwt.client.js;

import com.google.gwt.dom.client.Element;

public class NativeSelection {

    public native static void disableTextSelectInternal(Element e, boolean disable)/*-{
        if (disable) {
            e.ondrag = function () { return false; };
            e.onselectstart = function () { return false; };
            e.style.MozUserSelect="none"
        } else {
            e.ondrag = null;
            e.onselectstart = null;
            e.style.MozUserSelect="text"
       }
    }-*/;
}
